package com.muyu.danmo.mapper;

import com.muyu.danmo.domain.DanmoArtMaterial;
//import feign.Param;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 院校收藏Mapper接口
 *
 * @author yangle
 * @date 2024-10-31
 */
public interface  DanmoArtMaterialMapper {

    void insertDanmoArtMaterial(DanmoArtMaterial danmoArtMaterial);

    void deleteDanmoArtMaterialById(Long id);

//    DanmoArtMaterial selectDanmoCollectMaterialByIdAndUserId(@Param("userid") Long userid, @Param("collegeId") Long collegeId);

    void deleteDanmoArtMaterialByCollegeId(Long collegeId);

    void selectDanmoCollectMaterialById(Long collegeId);

    Boolean selectDanmoCollectMaterialByIdAndUserId(@Param("userId") Long userId, @Param("collegeId") Long collegeId);

    List<DanmoArtMaterial> selectDanmoCollectMaterialByUserId(@Param("userid") Long userid);

    /**
     * 取消收藏院校
     * @param ids
     * @param userId
     */
    void deleteDanmoArtMountFavoriteByIds(@Param("ids") Long[] ids, @Param("userId") Long userId);
}
